<template>
  <div>
    <div class="headerWrapper">
      <span class="iconfont iconnew"></span>
      <div class="search" @click="$router.push('/search')">
        <span class="iconfont iconsearch"></span>
        搜索新闻
      </div>
      <router-link to="/personal"><span class="iconfont iconwode"></span></router-link>
    </div>
  </div>
</template>

<script>
export default {}
</script>

<style lang="less" scoped>
.headerWrapper {
  display: flex;
  align-items: center;
  background-color: red;
  color: #fff;
  padding: 0 2.778vw;
  .iconnew {
    font-size: 15vw;
  }
  .search {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.4);
    margin: 0 5.556vw 0 3.889vw;
    text-align: center;
    height: 9.4444vw;
    line-height: 9.4444vw;
    border-radius: 4.4444vw;
  }
  .iconwode {
    font-size: 8.889vw;
    opacity: 0.6;
    color: #fff;
  }
}
</style>
